﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ElectronicJournal.Admin
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void AddEditor(object sender, EventArgs e)
        {
            try
            {
                SqlDataSourceEditorial.InsertParameters[0].DefaultValue = DescriptionTextBox.Text;
                SqlDataSourceEditorial.InsertParameters[1].DefaultValue = FIOTextBox.Text;
                //SqlDataSource1.InsertParameters[2].DefaultValue = HeightTextBox.Text;
                //SqlDataSource1.InsertParameters[3].DefaultValue = URLTextBox.Text;
                //SqlDataSource1.InsertParameters[4].DefaultValue = ImageTextBox.Text;
                SqlDataSourceEditorial.Insert();

                DescriptionTextBox.Text = null;
                FIOTextBox.Text = null;
                //HeightTextBox.Text = null;
                //URLTextBox.Text = null;
                //ImageTextBox.Text = null;
            }
            catch (Exception exp) { }
        }
    }
}